﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Menu_Delete : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UserPower.CheckAction((int)FreeHouse.Power.Actions.TMenu.Delete);
        int menuId;
        int.TryParse(Request.QueryString["menuid"], out menuId);
        new FreeHouse.BLL.TMenu().Delete(menuId);
        Response.Redirect(Request.UrlReferrer.ToString());
    }
}
